
<template>
  <div style="width: 300px">
    <VunLuckyWheel @trigger-disabled="test" />
  </div>
  <VunScratch ref="scratch" />
  <button @click="getScratchStatus">获取是否已经刮开了</button>
  <button @click="resetScratch">重置刮奖</button>
</template>

<script setup lang="ts">
import {ref} from "vue";

const scratch = ref(null)

function test() {
  console.log("11");
}

function getScratchStatus() {
  const s = scratch.value.getIsFinish()
  console.log(s)
}

function resetScratch() {
  scratch.value.resetCanvas()
}

</script>
